package com.upsuns.protocol;

import java.io.Serializable;

/**
 *@Description:<p>自定义的文件传输协议，约定文件的属性</p>
 *@author 王旭
 *@time 2016-2-9 下午9:57:26
 */
public class Protocol implements Serializable {
	
	private String fileName; //文件名，包含后缀。
	
	private long size; //文件大小，在接收端随机写入文件时要用到
	
	public Protocol() {}
	
	public Protocol(String fileName, long size) {
		this.fileName = fileName;
		this.size = size;
	}

	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public long getSize() {
		return size;
	}

	public void setSize(long size) {
		this.size = size;
	}
	
	
	

}
